const dynamicRoutes = [
  {
    path: "/systemConfig",
    name: "系统设置",
    icon: "setting",
    component: () => import("@/views/systemConfig/index"),
    children: [
      {
        path: "/home",
        name: "首页",
        icon: "home",
        component: () => import("@/views/systemConfig/home/index")
      },
      {
        path: "/menuConfig",
        name: "菜单设置",
        component: () => import("@/views/systemConfig/menuConfig/index")
      }
    ]
  },
  {
    path: "/basicComponents",
    name: "组件",
    icon: "appstore",
    component: () => import("@/views/basicComponents/index"),
    children: [
      {
        path: "/table",
        name: "表格",
        component: () => import("@/views/basicComponents/table/index")
      },
      {
        path: "/codeMirror",
        name: "代码编辑器",
        component: () => import("@/views/basicComponents/codeMirror/index")
      },
      {
        path: "/diamondLoad",
        name: "菱形加载",
        component: () => import("@/views/basicComponents/diamondLoading/index")
      },
      {
        path: "/tree",
        name: "树",
        component: () => import("@/views/basicComponents/tree/index")
      },
      {
        path: "/form",
        name: "自动表单",
        component: () => import("@/views/basicComponents/form/index")
      },
      {
        path: "/dragComponents",
        name: "自定义可拖拽组件",
        component: () => import("@/views/basicComponents/dragComponents/index")
      }
    ]
  },
  {
    path: "/function",
    name: "功能",
    icon: "star",
    component: () => import("@/views/function/index"),
    children: [
      {
        path: "/scrollPaging",
        name: "滚动加载",
        component: () => import("@/views/function/scrollPaging/index")
      },
      {
        path: "/code",
        name: "代码记录",
        component: () => import("@/views/function/code/index")
      }
    ]
  },
  {
    path: "/vue",
    name: "VUE",
    icon: "fire",
    component: () => import("@/views/vue/index"),
    children: [
      {
        path: "/basic",
        name: "基础",
        component: () => import("@/views/vue/basic/index")
      },
      {
        path: "/communication",
        name: "组件通信",
        component: () => import("@/views/vue/communication/index")
      }
    ]
  }
];

export default dynamicRoutes;
